package com.java.imauoj.moudel;

import java.util.Date;

public class Solution {

    private int solution_id;
    private int problem_id;
    private int user_id;
    private int time;
    private int memory;
    private Date in_date;
    private int result;
    private int language;
    private String ip;
    private int contest_id;
    private int valid;
    private int num;
    private int code_length;
    private Date judgetime;
    private int pass_rate;

    private String text;

    public Solution(){

    }

    public Solution(int solution_id, int problem_id, int user_id, int time, int memory, Date in_date, int result, int language, String ip, int contest_id, int valid, int num, int code_length, Date judgetime, int pass_rate, String text) {
        this.solution_id = solution_id;
        this.problem_id = problem_id;
        this.user_id = user_id;
        this.time = time;
        this.memory = memory;
        this.in_date = in_date;
        this.result = result;
        this.language = language;
        this.ip = ip;
        this.contest_id = contest_id;
        this.valid = valid;
        this.num = num;
        this.code_length = code_length;
        this.judgetime = judgetime;
        this.pass_rate = pass_rate;
        this.text = text;
    }

    public int getSolution_id() {
        return solution_id;
    }

    public void setSolution_id(int solution_id) {
        this.solution_id = solution_id;
    }

    public int getProblem_id() {
        return problem_id;
    }

    public void setProblem_id(int problem_id) {
        this.problem_id = problem_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getMemory() {
        return memory;
    }

    public void setMemory(int memory) {
        this.memory = memory;
    }

    public Date getIn_date() {
        return in_date;
    }

    public void setIn_date(Date in_date) {
        this.in_date = in_date;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public int getLanguage() {
        return language;
    }

    public void setLanguage(int language) {
        this.language = language;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getContest_id() {
        return contest_id;
    }

    public void setContest_id(int contest_id) {
        this.contest_id = contest_id;
    }

    public int getValid() {
        return valid;
    }

    public void setValid(int valid) {
        this.valid = valid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getCode_length() {
        return code_length;
    }

    public void setCode_length(int code_length) {
        this.code_length = code_length;
    }

    public Date getJudgetime() {
        return judgetime;
    }

    public void setJudgetime(Date judgetime) {
        this.judgetime = judgetime;
    }

    public int getPass_rate() {
        return pass_rate;
    }

    public void setPass_rate(int pass_rate) {
        this.pass_rate = pass_rate;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public String toString() {
        return "Solution{" +
                "solution_id=" + solution_id +
                ", problem_id=" + problem_id +
                ", user_id=" + user_id +
                ", time=" + time +
                ", memory=" + memory +
                ", in_date=" + in_date +
                ", result=" + result +
                ", language=" + language +
                ", ip='" + ip + '\'' +
                ", contest_id=" + contest_id +
                ", valid=" + valid +
                ", num=" + num +
                ", code_length=" + code_length +
                ", judgetime=" + judgetime +
                ", pass_rate=" + pass_rate +
                ", text='" + text + '\'' +
                '}';
    }
}
